package common.util;


public class AesRsjUtil {

    /**
     * 加密解密 盐
     */
    private static final String key = "ase_key_rsj";

    public static String encrypt(String originKey){
         return AESUtil.aesEncrypt(originKey, key);
    }

    public static String decrypt(String originKey){
        return AESUtil.aesDecrypt(originKey, key);
    }

    public static void main(String[] args) {
        String key = "ase_key_rsj";
        for(int i = 0; i< 100 ; i++){
            long start = System.currentTimeMillis();
            String encrypt = encrypt("沙发上" + i);
            System.out.println(encrypt + ":::" + (System.currentTimeMillis() - start) );
            start = System.currentTimeMillis();
            String decrypt = decrypt(encrypt);
            System.out.println(decrypt + "::::" + (System.currentTimeMillis() - start) );
        }
    }
}
